package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.bean.Dish;
import com.itheima.dto.DishDto;
import org.springframework.transaction.annotation.Transactional;

public interface DishService extends IService<Dish> {

    @Transactional
    void saveWithFlavors(DishDto dishDto);

    DishDto getByIdWithFlavors(Long id);

    @Transactional
    void updateWithFlavors(DishDto dishDto);

    void deleteDish(Long[] ids);

    void setStatus(Integer statusId,Long[] ids);
}
